<html>

<body id="myid" title="mytitle">

    <script type="text/javascript">
        x = document.getElementsByTagName('body')[0];
        document.write("Body title: " + x.title);
        document.write("<br />");
        document.write("An alternate way: ");
        document.write(document.getElementById('myid').title);
    </script>
    <div></div>

</body>

</html>
